package com.qiaofang.applet.service.property.service;

import com.qiaofang.applet.common.base.BaseService;
import com.qiaofang.applet.service.property.domain.PropertyContact;
import com.qiaofang.applet.service.property.service.dto.MyPropertyListDto;
import com.qiaofang.applet.service.property.service.dto.PropertyContactQueryDto;

import java.util.List;

/**
 * 房源业主服务接口
 *
 * @author daiyuxiang
 * @Time 2020-09-30
 */
public interface PropertyContactService extends BaseService<PropertyContact, String> {
    PropertyContact findByContactIdAndPropertyUuidAndCompanyUuid(String contactId, String businessId, String companyUuid);

    /**
     * 查询房源视频对象
     *
     * @param phone: 电话号码
     * @return List<PropertyContact>: 房源视频对象
     * @author daiyuxiang
     */
    List<PropertyContact> findAllByPhone(String phone);

    /**
     * PC端查询我的房子
     * @param propertyContactQueryDto
     * @return
     */
    List<MyPropertyListDto> searchMyProperty(PropertyContactQueryDto propertyContactQueryDto);

}
